import type { CompaniesIsMasterEnum } from '@/enums/cardEnum';
import { MemberRoleEnum } from './../../enums/memberRoleEnum';
export interface IMemberQrCodeVoList {
  qrCodeUrl: string;
  // "码类型：公众号，小程序，抖音，视频号"
  codeType: string;
}

export interface IMemberItem {
  id: number;
  cocId: number;
  socialPosition: string;
  name: string;
  avatar: string;
  appUserId: number;
  memberRoleType: MemberRoleEnum;
  phone: number;
  memberLeadingId: number
}

// 成员列表是否允许跳转详情
export type viewPersonDetails = 0 | 1;
export interface honorList {
  id: number;
  cocId: number;
  cocName: string;
  remarks: string;
  enabled: number;
}

// 0 待缴费 1 已缴费 2 临期 3 欠费
export type paymentStatus = 0 | 1 | 2 | 3;
export interface IPaymentInfoRes {
  id: number;
  memberName: string;
  levelId: number;
  levelName: string;
  membershipFees: number;
  allottedTime: number;
  createTime: string;
  paymentStatus: paymentStatus;
  isCheckout: number;
  primaryService: string;
  joinTime: string;
  memberEndTime: string;
}

export interface IUpdateMemberLeadingInfoData {
  avatar?: string;
  // cocId: number;
  socialPosition: string;
  memberRoleType: number;
  name: string;
  phone: number;
  id?: number;
}

export interface IAttacheInfo {
  memberId: number;
  userId: number;
  phone: string;
  userName: string;
}

export interface MemberData {
  name: string;
  avatar: string;
  phone?: string;
  birthday?: string;
  companyName?: string;
  companyPositionName?: string;
  companyAddress?: string;
  signInImg?: string;
}

export interface PerfectUserInfoData {
  name?: string
  avatar?: string
  companyName?: string
  companyPositionName?: string
  sex?: string
  schoolCode?: string
  nativePlace?: string
  resource?: string
  demand?: string
}

export interface UnitListResult {
  logo: string
  name: string
  id: number
  position: string
  /** 是否是认证单位 */
  authentication: boolean
  isMaster?: CompaniesIsMasterEnum
  addressStr?: string;
  mainBusinessList?: string[];
  socialIdentityList?: string[];
  imgList?: string[];
  introduce?: string;
  documentName?: string;
  document?: string;
  video?: string;
  videoCover?: string;
}

export interface UnitAddData {
  name: string;
  position: string
  logo?: string
  addressStr?: string;
  mainBusinessList?: string[];
  socialIdentityList?: string[];
  imgList?: string[];
  introduce?: string;
  documentName?: string;
  document?: string;
  video?: string;
  videoCover?: string;
}

export interface SetDefaultIdentityData {
  companyName: string
  companyId: number
  companyPositionName: string
}

/**用户身份数据统计 */
export interface UserStatistics {
  /**供需未处理数量 */
  boNum: number;
  /** 群聊未处理数量 */
  msgNum: number
}